home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / printing / nenscrip.000 / nenscrip / nenscript-1.13++ / makefile.msc < prev    next >
Makefile  |  1992-10-08  |  2KB  |  83 lines

  1. #
  2. # Makefile for MSC 6.00A using dmake 3.8 under OS/2
  3. # Adapted with minor changes from the supplied Makefile.
  4. # Files:
  5. #  nenscript.exe    OS/2 executable
  6. #  nenscrib.exe   OS/2 and MSDOS bound executable
  7. # Darrel Hankerson hank@ducvax.auburn.edu, 4-Oct-92
  8. #
  9.  
  10. .IMPORT : HOME
  11.  
  12. CC = cl
  13. LINK = cl
  14. BIND = bind
  15.  
  16. OBJ        = .obj
  17.  
  18. BaseName =  nenscript
  19. PROG        =    $(BaseName).exe
  20. MAN        =    $(BaseName).1
  21. SOURCES        =    main.c postscri.c print.c fontwidt.c font_lis.c paper.c
  22. OBJECTS        =    $(SOURCES:.c=.obj)
  23.  
  24. INSTALLDIR    =
  25. BININSTALLDIR    =    $(INSTALLDIR)/bin
  26. MANINSTALLDIR    =    $(INSTALLDIR)/etc/man
  27.  
  28. LOCALINSTALLDIR        =    $(HOME)/bin
  29. LOCALMANINSTALLDIR    =    $(HOME)/man/man1
  30.  
  31. #
  32. # uncomment macro below for debug version
  33. #
  34. #DEBUG    = -g
  35.  
  36. #
  37. # US_VERSION selects default US paper format as well as selecting US format date
  38. #
  39. CFLAGS    =    $(DEBUG) #-DUS_VERSION
  40. LFLAGS    =    -Lp /F 5000
  41.  
  42. DEFS = -DMSDOS -D__STDC__
  43.  
  44. CHMOD    =    chmod
  45. CP    =    cp
  46. RM    =    rm -f
  47. INSTALL    =    install
  48.  
  49. all debug:    $(PROG) nenscrib.exe
  50.  
  51. $(PROG): $(OBJECTS) $(BaseName).def
  52.     $(LINK) $(LFLAGS) -o $@ $<
  53.  
  54. nenscrib.exe : $(PROG)
  55.     $(BIND) $< /o $@ 
  56.  
  57. .c.obj :; $(CC) -c $(CFLAGS) $(DEFS) $<
  58.  
  59. install: $(PROG)
  60.     $(INSTALL)  $(PROG) $(BININSTALLDIR)
  61.  
  62. install.man: $(MAN)
  63.     $(INSTALL) $(MAN) $(MANINSTALLDIR)
  64.  
  65. install.local:    $(PROG) $(MAN)
  66.     $(INSTALL) $(PROG) $(LOCALINSTALLDIR)
  67.     $(INSTALL) $(MAN) $(LOCALMANINSTALLDIR)
  68.  
  69. clean:
  70.     $(RM) *$(OBJ) *.mdt $(PROG) nenscrib.exe
  71.  
  72. font_lis.c: machdep.h defs.h font_lis.h main.h
  73.  
  74. fontwidt.c: machdep.h defs.h fontwidt.h main.h
  75.  
  76. main.c: machdep.h defs.h version.h postscri.h print.h main.h paper.h
  77.  
  78. paper.c: machdep.h paper.h
  79.  
  80. postscri.c: machdep.h defs.h paper.h postscri.h fontwidt.h font_lis.h main.h
  81.  
  82. print.c: machdep.h defs.h print.h postscri.h main.h
  83.